/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gui;

import ircbot.Bot;

/**
 *
 * @author andreas
 */
public class GuiController {
    Bot model;
    GuiView view;

    public GuiController(Bot model, GuiView view) {
        this.model = model;
        this.view = view;
    }

    public void injectCommand(String command, String channel) {
        model.executeCommand(command, channel);
        view.setOutMessage("command: " + command + " send to " + channel);
    }
}
